package com.iuie.ns.system.service.impl;

import javax.annotation.Resource;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.stereotype.Component;

import com.iuie.ns.system.service.ITextMessageProducerService;

@Component
public class RabbitMQTextMessageProducerServiceImpl implements ITextMessageProducerService {

	@Resource
	private AmqpTemplate rabbitAmqpTemplate;
	
	@Override
	public void sendMessage(String exchangeKey, String queueKey, String text) {
		rabbitAmqpTemplate.convertAndSend(exchangeKey, queueKey, text);
	}


}
